package com.iims.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iims.finance.domain.CmisCwInvoice;
import com.iims.finance.vo.resp.CmisCwInvoiceDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fanpei
 * @date 2021/7/9 22:28
 */
public interface CmisCwInvoiceMapper extends BaseMapper<CmisCwInvoice> {
    /**
     * 条件筛选开票
     *
     * @param invoice
     * @return
     */
    List<CmisCwInvoiceDetailVo> selectCwInvoiceList(CmisCwInvoice invoice);

    /**
     * 查询合同所属开票列表
     * @param contractId
     * @return
     */
    List<CmisCwInvoiceDetailVo> selectContractCwInvoiceList(@Param("contractId") Long contractId);

    /**
     * 查询开票详情
     *
     * @return
     */
    CmisCwInvoiceDetailVo selectCwInvoiceDetail(@Param("invoiceId") Long invoiceId);
}
